﻿using System;
using System.Collections.Generic;
using System.Linq;
using WYJCore.Extension;
using WYJWeb;

namespace WYJWeb.Models
{
    /// <summary>
    /// 权限
    /// </summary>
    public class Power : BaseModel
    {

        [Column]
        public string SubPowers { get; set; }

        public List<Power> GetSubPowers()
        {
            return SubPowers.SplitToInt().Select(x => new Power { Id = x }).ToList();
        }

    }
}